package com.bjfu.gmms.model;


public class ApplicationPreference {
    private int studentId; // 学生ID
    private int mentorId; // 导师ID
    private String researchId; // 研究方向ID
    private int preferenceOrder; // 志愿顺序
    private int preferenceStatus; // 志愿状态

    public ApplicationPreference(int studentId, int mentorId, String researchId, int preferenceOrder) {
        this.studentId = studentId;
        this.mentorId = mentorId;
        this.researchId = researchId;
        this.preferenceOrder = preferenceOrder;
        this.preferenceStatus=1;    //  默认为1，失败
    }

    // Getters and Setters
    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public int getMentorId() {
        return mentorId;
    }

    public void setMentorId(int mentorId) {
        this.mentorId = mentorId;
    }

    public String getResearchId() {
        return researchId;
    }

    public void setResearchId(String researchId) {
        this.researchId = researchId;
    }

    public int getPreferenceOrder() {
        return preferenceOrder;
    }

    public void setPreferenceOrder(int preferenceOrder) {
        this.preferenceOrder = preferenceOrder;
    }

    public int getPreferenceStatus() {
        return preferenceStatus;
    }

    public void setPreferenceStatus(int preferenceStatus) {
        this.preferenceStatus = preferenceStatus;
    }

    @Override
    public String toString() {
        return "ApplicationPreference{" +
                "studentId=" + studentId +
                ", mentorId=" + mentorId +
                ", researchId='" + researchId + '\'' +
                ", preferenceOrder=" + preferenceOrder +
                ", preferenceStatus=" + preferenceStatus +
                '}';
    }

}

